package cn.liuweiwei.mapper;

import cn.liuweiwei.domain.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResourceMapper {

    List<Resource> findAll();

    void insert(Resource resource);

    void update(Resource resource);

    void delete(String id);

    List<Resource> findByTitle(String title);
}
